<!--
 * @Description  : 穿梭
 * @Autor        : 杜康
 * @Date         : 2023-03-06 17:27:07 +0800
 * @LastEditors  : 杜康
 * @LastEditTime : 2023-03-16 15:27:05 +0800
-->
<template>
  <el-transfer v-model="value" :data="data" />
</template>
<script setup>
import { ref } from "vue";

const generateData = () => {
  const data = [];
  for (let i = 1; i <= 15; i++) {
    data.push({
      key: i,
      label: `Option ${i}`,
      disabled: i % 4 === 0
    });
  }
  return data;
};

const data = ref(generateData());
const value = ref([]);
</script>
